package com.yoga.model;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import net.sf.jsqlparser.util.validation.Validation;

import java.sql.Date;
import java.time.LocalDateTime;


/**
 * @author yan
 * @date 2025/8/16
 */
@Data
@TableName("course")
public class Course {
    @TableId(type = IdType.AUTO)
    private Integer courseId;
    @TableField(value = "name")
    private String courseName;
    private String type;
    private Integer duration;

    private Integer coachId;
    @TableField(exist = false)
    private String coachName;

    private Integer roomId;
    @TableField(exist = false)
    private String roomName;

    private Integer maxStudent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime schedule;
    private Integer contain;
}
